import axios from '@/utils/tool'
export const regLogin = (obj) => {
  return axios({
    url: '/api/login',
    method: 'post',
    data: obj
  })
}
export const regReg = (obj) => {
  return axios({
    url: '/api/reg',
    method: 'post',
    data: obj
  })
}
export const userMsg = () => {
  return axios({
    url: '/my/userinfo',
    method: 'get'
  })
}
export const updateMsg = (obj) => {
  return axios({
    url: '/my/userinfo',
    method: 'put',
    data: obj
  })
}
